<?php

App::uses('User', 'Model');

class UserTest extends CakeTestCase {


    public function setUp() {
        parent::setUp();
        $this->User = ClassRegistry::init('User');
    }

    public function testRestoreUser() {
        $result1 = $this->User->restoreUser('203','200');
        $expected1 ='the user is not deleted';
        $result2 = $this->User->restoreUser('201','201');
        $expected2 = 'this command needs an admin permission';
        $this->assertEquals($expected1, $result1);
        $this->assertEquals($expected2, $result2);

    }

}